﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace for3
{
    class Program
    {
        static void Main(string[] args)
        {
            double sum = 1, i;
            for (i = 1; i < 100; i++) 
            {
                sum += i / (i + 1);
            }
            Console.WriteLine("数列的和为{0}", sum);
            Console.ReadKey();
        }
    }
}
